package com.work.servlet;

import com.work.service.UserService;
import com.work.service.impl.UserServiceImpl;
<<<<<<< HEAD
import com.work.utils.CaptchaUtils;

import javax.imageio.ImageIO;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.awt.*;
import java.awt.image.BufferedImage;
import java.io.IOException;
import java.util.Random;

public class UserServlet {
    private UserService userService=new UserServiceImpl();

    public void code(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        String code= new CaptchaUtils().randomStr(4);
        CaptchaUtils vCode=new CaptchaUtils(116,36,4,20,code);
        vCode.write(response.getOutputStream());
=======

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

public class UserServlet {
    private UserService userService=new UserServiceImpl();
    public void list(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {

>>>>>>> 98bae14bd3a94d40343a0560834ad8f76ad2282b
    }
}
